Skip to content

Adicionando rota de download de midia em base64 ou buffer#4

Open
jtapeg wants to merge 1 commit intoEvolutionAPI:developfrom
jtapeg:add-download-media-message
Open

Adicionando rota de download de midia em base64 ou buffer#4
jtapeg wants to merge 1 commit intoEvolutionAPI:developfrom
jtapeg:add-download-media-message

Conversation

@jtapeg
Copy link

@jtapeg jtapeg commented Feb 20, 2025

POST /chat/downloadMediaMessage/:instance

{
    "downloadableMessage": {
        "mediaKey": "",
        "directPath": "",
        "url": ""
    },
    "type": "image", // image, video, audio, document, sticker, ptt
    // optional
    "timeout": 30000, // Milissegundos - padrão 30000 = 30s
    "returnType": "buffer" // buffer, base64 - padrão buffer
}

Implementado a função downloadContentFromMessage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant